<?php

class Application_Form_LoginForm extends Zend_Form
{

    public function init()
    {
        $this->setMethod('post');
        $this->setName('login_form');
        
        $username = new Zend_Form_Element_Text('username');
        $username->setLabel('Username')
                 ->setRequired();
        $username->removeDecorator('errors');
        
        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Password')
                 ->setRequired();
        $password->removeDecorator('errors');
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Login');
        
        $this->addElements(array($username,$password,$submit));
        
        $this->setAction(Zend_Controller_Front::getInstance()->getBaseUrl().'/auth/login');
    }


}

